package com.evaluation.kexingcp.psycho.evaluation.sys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.evaluation.kexingcp.common.data.datascope.DataScope;
import com.evaluation.kexingcp.common.data.datascope.KexingcpBaseMapper;
import com.evaluation.kexingcp.psycho.evaluation.sys.controller.vo.EvaluationTaskUserVo;
import com.evaluation.kexingcp.psycho.evaluation.sys.controller.vo.UserReportVo;
import com.evaluation.kexingcp.psycho.evaluation.sys.entity.EvaluationTaskEntity;
import com.evaluation.kexingcp.psycho.evaluation.sys.entity.EvaluationTaskUserRelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EvaluationTaskMapper extends KexingcpBaseMapper<EvaluationTaskEntity> {

    List<EvaluationTaskEntity> selectChildrenScales();
    List<EvaluationTaskEntity> selectChildrenScales2();

    List<Map<String, Object>> selectEvaluationNumsByDate();

    Map<String, Integer> selectUserStatus();

    List<UserReportVo> selectUserDeptStatus();

    List<UserReportVo> selectUserWarningByDept();

    IPage<EvaluationTaskEntity> page(Page page, @Param("query") EvaluationTaskEntity query);
}